package com.tct.worktimeboard.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tct.worktimeboard.entity.WorkGroup;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedHashMap;
import java.util.List;

/**
 * @author Huhailong
 * @Description
 * @Date 2021/2/23.
 */
public interface WorkGroupMapper extends BaseMapper<WorkGroup> {
    int bindGroupUser(@Param("groupId")Long groupId, @Param("userList")List<Long> userList);
    int deleteGroupUser(@Param("list") List<Long> list);
    int bindGroupPowerUser(@Param("groupId")Long groupId, @Param("powerUserList") List<Long> powerUserList);
    int deletePowerUser(@Param("list") List<Long> list);
    List<LinkedHashMap<String,Object>> getUserByGroup(@Param("groupId") Long groupId);
    List<Long> getPowerUserByGroupList(@Param("list") List<Long> list);
    List<LinkedHashMap<String,Object>> getPowerUserByGroup(@Param("groupId") Long groupId);
    List<Long> getGroupIdByUserId(@Param("userId") Long userId);
    List<LinkedHashMap<String,Object>> getGroupByUserId(@Param("userId") Long userId);
    List<Long> getGroupPowerUserIdByUserId(@Param("userId") Long userId);
    List<Long> getAllGroupUser();
    List<Long> getAllPowerUser();
//    List<LinkedHashMap<String,Object>> getGroupList(Page<List<LinkedHashMap<String,Object>>> page, @Param("pojo") WorkGroup pojo);
}
